[FileRepo] Use faster doQuickOperations() function for thumbnails ops.
authorAaron <aschulz@wikimedia.org>
Wed, 16 May 2012 20:45:31 +0000 (13:45 -0700)
committerAaron <aschulz@wikimedia.org>
Thu, 17 May 2012 16:55:02 +0000 (09:55 -0700)
Change-Id: I8139b7f6f8533bb0dbeddba12750ab9342b2dd82

includes/filerepo/FileRepo.php

index 6533dae..d3dded4 100644 (file)
@@ -852,14 +852,11 @@ class FileRepo {
                        $operations[] = array(
                                'op'        => 'store',
                                'src'       => $src,
-                               'dst'       => $this->resolveToStoragePath( $dst ),
-                               'overwrite' => true
+                               'dst'       => $this->resolveToStoragePath( $dst )
                        );
                        $this->backend->prepare( array( 'dir' => dirname( $dst ) ) );
                }
-               $status->merge( $this->backend->doOperations( $operations,
-                       array( 'force' => 1, 'nonLocking' => 1, 'allowStale' => 1, 'nonJournaled' => 1 )
-               ) );
+               $status->merge( $this->backend->doQuickOperations( $operations ) );
 
                return $status;
        }
@@ -882,9 +879,7 @@ class FileRepo {
                                'ignoreMissingSource' => true
                        );
                }
-               $status->merge( $this->backend->doOperations( $operations,
-                       array( 'force' => 1, 'nonLocking' => 1, 'allowStale' => 1, 'nonJournaled' => 1 )
-               ) );
+               $status->merge( $this->backend->doQuickOperations( $operations ) );
 
                return $status;
        }